home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / gl_dev.idb / usr / share / src / OpenGL / teach / motif / README.z / README
Encoding:
Text File  |  1996-12-06  |  1.5 KB  |  36 lines

  1. This directory contains very simple programs which illustrate
  2. how to use the OpenGL Motif widget.
  3.  
  4. simplest.c    - minimal motif program - uses a single widget, but
  5.           handles expose, resize, and keyboard events
  6.  
  7. simple-popup.c    - minimal motif program with popup menu - uses a single
  8.           widget, but handles expose, resize, and keyboard events.
  9.           RIGHTMOUSE activates menu.
  10.  
  11. mouse.c        - simple double buffered motif program using mouse motion
  12.           events to update viewing transform
  13.           LEFTMOUSE pans, MIDDLEMOUSE rotates about X and Y axes,
  14.           LEFTMOUSE+MIDDLEMOUSE zooms
  15.  
  16. animate.c    - simple double buffered motif program.  uses an Xt
  17.           work proc to do animation.  popup menu is used to
  18.           enable and disable work proc
  19.  
  20. multi-widget.c    - uses two drawing area widgets with potentially different
  21.           dimensions with a single GLX context.  Also includes
  22.           a quit button.  The interactions are the same as in mouse.c
  23.  
  24. overlay.c    - a modification of the animate.c program which also creates
  25.           a transparent overlay window using the visual_info extension.
  26.           The program draws a static grid in the overlay window and
  27.           resizes or redraws the overlay window whenever it is
  28.           necessary.  The overlay window and main window are each
  29.           a separate drawing area widget and the two are sandwiched
  30.           together inside a form widget.
  31.  
  32. switch-visual.c    - another modification of the animate.c program which creates
  33.           two context/visual/widget pairs -- one single buffered
  34.           and one double buffered.  A cascading popup menu allows
  35.           the user to switch between the two visuals.
  36.